package com.ecnu.system.mapper;

import com.ecnu.system.domain.ProjectUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ecnu.system.domain.vo.EvaluateListInterVO;
import com.ecnu.system.domain.vo.ProjectUserVO;
import com.ecnu.system.domain.vo.ProjectViewVO;
import com.ecnu.system.domain.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * ecnu_活动参与人表	 Mapper 接口
 * </p>
 *
 * @author zdn
 * @since 2025-03-20
 */
@Mapper
public interface ProjectUserMapper extends BaseMapper<ProjectUser> {

    /**
     * 批量插入
     *
     * @param users
     * @return
     */
    int insertBatch(@Param("list") List<ProjectUser> users);

    List<UserVO> selectByPlanId(@Param("list") List<String> fileList);

    List<ProjectUserVO> getProUser(@Param("id") String id, @Param("nickName") String nickName);

    List<UserVO> getStageUser(String id);

    List<ProjectViewVO> selectByReview(@Param("id") Long userId, @Param("name") String name);

    List<ProjectViewVO> selectBySubmissionList(@Param("id")Long id,@Param("name") String name);

    List<EvaluateListInterVO> selectEvaluateList(@Param("title")String title, @Param("userId")Long userId,@Param("status") Integer status);

    List<ProjectUser> selectListByUser(@Param("user") ProjectUser user);

    List<ProjectViewVO> selectByReviewAdmin(String name);
}
